﻿using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 组件过站配置
    /// </summary>
    [Table(nameof(CompCrossSite))]
    public class CompCrossSite : BaseEntity
    {
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 分片可重复过站
        /// </summary>
        public bool FragRepeat { get; set; }

        /// <summary>
        /// 分片可不过站
        /// </summary>
        public bool FragNoSite { get; set; }

        /// <summary>
        /// 焊接可重复过站
        /// </summary>
        public bool WeldRepeat { get; set; }

        /// <summary>
        /// 焊接可不过站
        /// </summary>
        public bool WeldNoSite { get; set; }

        /// <summary>
        /// 层叠可重复过站
        /// </summary>
        public bool StackRepeat { get; set; }

        /// <summary>
        /// 层叠可不过站
        /// </summary>
        public bool StackNoSite { get; set; }

        /// <summary>
        /// 装框可重复过站
        /// </summary>
        public bool FrameRepeat { get; set; }

        /// <summary>
        /// 装框可不过站
        /// </summary>
        public bool FrameNoSite { get; set; }

        /// <summary>
        /// 装框接线盒拍照
        /// </summary>
        public bool FramePhoto { get; set; }

        /// <summary>
        /// 装框接线盒条码可不扫
        /// </summary>
        public bool FrameNoScan { get; set; }
    }

    public partial class MESContext
    {
        /// <summary>
        /// 组件过站配置
        /// </summary>
        public virtual DbSet<CompCrossSite> CompCrossSites { get; set; }
    }
}
